package com.test.qpbgboot.show.mapper;

import com.test.qpbgboot.show.pojo.dto.EscortQuery;
import com.test.qpbgboot.show.pojo.entity.Escort;
import com.test.qpbgboot.show.pojo.vo.EscortVO;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

public interface EscortMapper {
    List<EscortVO> selectEscortVObyEscortQuery(EscortQuery escortQuery);
    Integer selectEnableCountByIdList(List<Long> idList);
    Integer selectCountByUserId(Long userId);
    BigDecimal selectPriceById(Long id);
    Long selectIdByUserId(Long userId);
    boolean checkEnableById(Long id);
    void insert(Escort escort);
    void update(Escort escort);
    void updateVisibleByUserId(@Param("userId")Long userId, @Param("visible")String visible);
    void deleteById(Long id);
}
